package com.mindata.blockchain.common;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @Author:wenhui
 * @Description:raft的配置文件
 * @Date:Create in 2018-7-25 11:30
 **/
@Component
public class RaftConf {

    @Resource
    private SystemConfig systemConfig;


    public static String localServer;
    public static String logDataPath;
    public static boolean isLevelDB;

    @PostConstruct
    public void init() {
        localServer = systemConfig.getRaftLocalServer();
        logDataPath = systemConfig.getRaftDataPath();
        isLevelDB = systemConfig.isBlockLevelDB();
    }
}
